package com.woniu.platform.contorller;

import com.woniu.platform.entity.PlatformLoan;
import com.woniu.platform.service.PlatformLoadService;
import com.woniu.util.utils.HttpResult;
import com.woniu.util.utils.RequestParam;
import com.woniu.util.utils.RequestResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("loan")
public class PlatformLoanController {
    @Autowired
    private PlatformLoadService platformLoadService;
    /**
     * 分页查询消费记录
     */
    @PostMapping("list")
    HttpResult queryLoanList(@RequestBody RequestParam<PlatformLoan> request){
        return platformLoadService.queryLoanList(request);
    }
}
